package com.qinge.blog.dao;

import com.qinge.blog.entity.BlogUserRole;
import com.qinge.blog.entity.BlogUserRoleExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BlogUserRoleDao {
    /**
     * countByExample
     * @param example
     * @return 
     */
    long countByExample(BlogUserRoleExample example);

    /**
     * deleteByExample
     * @param example
     * @return 
     */
    int deleteByExample(BlogUserRoleExample example);

    /**
     * insert
     * @param record
     * @return 
     */
    int insert(BlogUserRole record);

    /**
     * insertSelective
     * @param record
     * @param selective
     * @return 
     */
    int insertSelective(@Param("record") BlogUserRole record, @Param("selective") BlogUserRole.Column ... selective);

    /**
     * selectByExample
     * @param example
     * @return 
     */
    List<BlogUserRole> selectByExample(BlogUserRoleExample example);

    /**
     * updateByExampleSelective
     * @param record
     * @param example
     * @param selective
     * @return 
     */
    int updateByExampleSelective(@Param("record") BlogUserRole record, @Param("example") BlogUserRoleExample example, @Param("selective") BlogUserRole.Column ... selective);

    /**
     * updateByExample
     * @param record
     * @param example
     * @return 
     */
    int updateByExample(@Param("record") BlogUserRole record, @Param("example") BlogUserRoleExample example);

    /**
     * batchInsert
     * @param list
     * @return 
     */
    int batchInsert(@Param("list") List<BlogUserRole> list);

    /**
     * batchInsertSelective
     * @param list
     * @param selective
     * @return 
     */
    int batchInsertSelective(@Param("list") List<BlogUserRole> list, @Param("selective") BlogUserRole.Column ... selective);

    /**
     * upsert
     * @param record
     * @return 
     */
    int upsert(BlogUserRole record);

    /**
     * upsertSelective
     * @param record
     * @return 
     */
    int upsertSelective(@Param("record") BlogUserRole record, @Param("selective") BlogUserRole.Column ... selective);
}